<!DOCTYPE HTML>
<html lang="zh-CN" class="detail_brand">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"  />
    <title>商品详情</title>
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <meta http-equiv="x-dns-prefetch-control" content="on" />
	<link rel="dns-prefetch" href="http://static.paipaiimg.com" />

    <meta http-equiv="x-dns-prefetch-control" content="on" />
    <link rel="dns-prefetch" href="//pics0.paipaiimg.com">
    <link rel="dns-prefetch" href="//pics1.paipaiimg.com">
    <link rel="dns-prefetch" href="//pics2.paipaiimg.com">
    <link rel="dns-prefetch" href="//pics3.paipaiimg.com">
    <link rel="dns-prefetch" href="//static.paipaiimg.com">
    

    
      <link  rel="stylesheet" href="{$Think.config.RESOURCEURL}wx_assets/css/product/gb_v3.s.min.css?t=2014111802" />
    <link  rel="stylesheet" href="{$Think.config.RESOURCEURL}wx_assets/css/product/detail_brand_v1.s.min.css" />
    <link  rel="stylesheet" href="{$Think.config.RESOURCEURL}wx_assets/css/product/gb.css" />

	<script type="text/javascript" src="{$Think.config.RESOURCEURL}wx_assets/js/alertMsg.js"></script>


</head>
<body>
<!-- include virtual="/sinclude/mm/head_inc.shtml"-->
<script>window["PP.wx.badjs.time"]=[new Date()]</script>
<script id="legos:21994" ver="21994:20140225:20140225162631" name="PP.wx.badjs" charset="gbk">
function $initBadjs() {
    var errorStr = "", getStack = function() {
        if (arguments.callee.caller.caller) {
            var curr = arguments.callee.caller.caller, c, o = [];
            while (curr) c = curr, o.push("[" + $transJson2str(curr.arguments) + "]" + c.toString().replace(/[\t\n\r]/g, "").substring(0, 100)), curr = curr.caller;
            return o.join(":");
        }
        return "";
    };
    window.onerror = function(msg, url, l) {
        var stack = getStack(), ts = String(msg).replace(/\n/g, " ") + "|" + encodeURIComponent(url + ":" + stack) + "|" + l;
        window._last_err_msg = {
            "msg": msg,
            "url": url,
            "l": l,
            "stack": stack
        };
        if (errorStr.indexOf(ts) == -1 || window._badjs_allow_resend) errorStr += ts + ",", $sendBadjs(msg, url, l + ":" + stack);
        return !1;
    };
}

function $namespace(name) {
    for (var arr = name.split(","), r = 0, len = arr.length; r < len; r++) for (var i = 0, k, name = arr[r].split("."), parent = {}; k = name[i]; i++) i === 0 ? eval("(typeof " + k + ')==="undefined"?(' + k + '={}):"";parent=' + k) : parent = parent[k] = parent[k] || {};
}

function $sendBadjs(msg, src, d) {
    var ua = navigator.userAgent.toLowerCase(), bom = window.ActiveXObject ? "IE" + ua.match(/msie ([\d.]+)/)[1] : ua.indexOf("firefox") != -1 ? "Firefox" + ua.match(/firefox\/([\d.]+)/)[1] : ua.indexOf("chrome") != -1 ? "Chrome" + ua.match(/chrome\/([\d.]+)/)[1] : window.opera ? "Opera" + ua.match(/opera.([\d.]+)/)[1] : window.openDatabase ? "Safari" + ua.match(/version\/([\d.]+)/)[1] : ua.replace(/\s*/g, ""), ts = msg.replace(/\n/g, " ").replace(/\|/g, ";") + "|" + encodeURIComponent(src) + "|" + d.replace(/\|/g, ";");
    setTimeout(function() {
        sr = document.createElement("script"), document.getElementsByTagName("head")[0].appendChild(sr), sr.src = "http://party.paipai.com/cgi-bin/badjs?Browser=" + bom + "&Url=" + encodeURIComponent(location.href) + "&Content=" + ts + "&t=" + Math.random();
    }, 1e3);
}

function $transJson2str(o) {
    if (o == undefined) return "";
    var r = [];
    if (typeof o == "string") return '"' + o.replace(/([\"\\])/g, "\\$1").replace(/(\n)/g, "\\n").replace(/(\r)/g, "\\r").replace(/(\t)/g, "\\t") + '"';
    if (typeof o == "object") {
        if (!o.sort) {
            for (var i in o) r.push('"' + i + '":' + $transJson2str(o[i]));
            !!document.all && !/^\n?function\s*toString\(\)\s*\{\n?\s*\[native code\]\n?\s*\}\n?\s*$/.test(o.toString) && r.push("toString:" + o.toString.toString()), r = "{" + r.join() + "}";
        } else {
            for (var i = 0; i < o.length; i++) r.push($transJson2str(o[i]));
            r = "[" + r.join() + "]";
        }
        return r;
    }
    return o.toString().replace(/\"\:/g, '":""');
}

window["PP.wx.badjs.time"] && window["PP.wx.badjs.time"].push(new Date), $namespace("PP.wx.badjs"), PP.wx.badjs.init = function() {
  //  $initBadjs();
}, PP.wx.badjs.init(), window["PP.wx.badjs"] = "21994:20140225:20140225162631", window["PP.wx.badjs.time"] && window["PP.wx.badjs.time"].push(new Date);</script><!--[if !IE]>|xGv00|6141ed8eb96a1e2e46cdd87a6d44c404<![endif]-->
<div class="WX_bar WX_bar_2" id="topBar">
    <div class="WX_bar_back">
        <a class="WX_bar_back_tit" href="javascript:history.go(-1);">
        <span></span>
        </a>
    </div>
    <div class="WX_nav" id="topDetTab">
        <a no=1 >商品详情</a>
        <!-- 
	     <a no=1  class="on">详情</a>
         <a no=2 href="##">评论</a>
         -->
    </div>
</div>
<script>
var _postInfo = null;

</script>



<div class="wx_content">
<div class="page_goods" id="page_goods">
<div class="mod_slider" id="loopImgDiv">
    <div class="inner">
        <ul class="pic_list" id="loopImgUl">
        	<li>
				<img src="{$picUrl}">
			</li>
			
			<notempty name="picUrl2">
				<li>
                  	<img  src="{$picUrl2}" />
                </li>
        	</notempty>
			<notempty name="picUrl3">
				<li>
                  	<img  src="{$picUrl3}" />
                </li>
        	</notempty>
			<notempty name="picUrl4">
				<li>
                  	<img  src="{$picUrl4}" />
                </li>
        	</notempty>
			<notempty name="picUrl5">
				<li>
                  	<img  src="{$picUrl5}" />
                </li>
        	</notempty>
        	
        	
        </ul>
    </div>
    <div class="bar_wrap">
    	<ul class="bar" id="loopImgBar">
    		<li no="1" class="cur"></li>
    		<notempty name="picUrl2">
    			<li no="2" class></li>
        	</notempty>
    		<notempty name="picUrl3">
    			<li no="3" class></li>
        	</notempty>
    		<notempty name="picUrl4">
    			<li no="4" class></li>
        	</notempty>
    		<notempty name="picUrl5">
    			<li no="5" class></li>
        	</notempty>
    	</ul>
    </div>
</div>

<div class="buy_area">
				<div class="fn_wrap">
					<h1 class="fn" id="itemName">{$name}</h1>
				</div>
				<notempty name="fixedPrice">
					<notempty name="discountedPrice">
						<div class="price_wrap">
							<span class="tit">折扣价：</span>
							<span class="price">￥{$discountedPrice}元</span>
						</div>
						<div class="old_price_wrap">
							<span>原价：
								<b>￥{$fixedPrice}元</b>
							</span>
						</div>
					</notempty>
				                    
                    <empty name="discountedPrice">
						<div class="price_wrap">
							<span class="tit">价格：</span>
							<span class="price">￥{$fixedPrice}元</span>
						</div>
						<div class="price_divide"></div>
                    </empty>
				</notempty>
				
				<notempty name="points">
	               <if condition="$pointsType eq 'interact'">
  	                 	<div class="price_wrap">
							<span class="tit">互动积分：</span>
							<span class="price">{$points}积分</span>
						</div>
						<div class="price_divide"></div>
	               	<elseif condition="$pointsType eq 'consume'"/>
  	                 	<div class="price_wrap">
							<span class="tit">消费积分：</span>
							<span class="price">{$points}积分</span>
						</div>
						<div class="price_divide"></div>
               		</if>
              </notempty>
			
			
			
			<div class="sku_container sku_container_on" id="skuCont">
				<!-- 
				 -->
				<if condition="($size neq 'null') OR ($color neq 'null')">
					<div class="attr_wrap" id="skuEnter">
						<span class="tit">请选择：</span>
						<span classs="attr" id="skuTitle"></span>
					</div>
				
				</if>
				<div class="sku_wrap">
					<div id="propertyDiv"> 
						
					</div>
					<!-- 
					<div class="sku sku_num">
						<h3>数量</h3>
						<div class="num_wrap">
							<span class="minus minus_disabled" id="minus"></span>
							<input class="num" id="buyNum" type="tel" value="1">
							<span class="plus" id="plus"></span>
						</div>
						<div class="stock_num">
							<div class="inner">
								<div id="skuStock">库存23件</div>
								<div id="buyLimit"></div>
							</div>
						</div>
					</div>
					
					 -->
				</div>
				
				
			</div>
			
			
			<if condition = "($showBtn eq 1)" >
				<div class="btn_wrap btn_wrap_static">
				<a class="btn btn_cart" id="addCart"><i></i></a>
		            <notempty name = "fixedPrice">
	    	 	  		<a class="btn btn_buy" id="buyBtn" onclick="buy(this)" id="buyBtn">立即购买</a>
	               	</notempty>
	               	<notempty name = "points">
	    	 	  		<a class="btn btn_buy" id="buyBtn" onclick="buy(this)" id="buyBtn">立即兑换</a>
	               	</notempty>
				</div>
			<else/>
				<div class="btn_wrap btn_wrap_static">
				<a class="btn btn_cart" id="addCart"><i></i></a>
				</div>
    	   </if>
			
		</div><!-- buy_area end -->
		
		<!-- 
			<div id="detailBaseLine" class="mod_tab_gap"></div>
			<div class="mod_tab_wrap" style="display: none">
				<div class="mod_tab" id="detailTab">
				    <span no="1">详情</span>
				</div>
			</div>
		 -->
		 
	<div id="detailBaseLine" class="mod_tab_gap"></div>	
		
		<div class="detail_info_wrap" id="detail">
			<div class="detail_list" id="detailCont">
				<div class="mod_tab">
					<span no="1">商品详情</span>
				</div>
				<div class="detail_item p_desc" id="detail1">
				<strong class="mod_color_strong">{$recommend}</strong>
				{$webPageContent}
    	        </div>
			</div>
		</div>	
</div>

<div class="page_comment" id="page_comment" style="display: none">
	<div class="comment d_section">
            <div class="comment_top">
                <h2 class="comment_tit">评价<span class="comment_total">(<em id="evalNum"></em>条评价)</span></h2>
            </div>
            <div class="comment_list" id="evalDet"></div>
            <div id="eveaLoading"></div>
        </div>
</div>
</div>

<!-- 
<div class="layer_my" id="quckFloat">
    <a href="http://m.buy.qq.com"><i class="i_wg"></i>QQ网购首页</a>
    <a href="http://mm.wanggou.com/my/index.shtml?backurl=" onclick="this.href += encodeURI(location.href)" id="persLink"><i class="i_my"></i>个人中心</a>
    <a href="http://mm.wanggou.com/item/wg_shopcart.shtml" style="display: none"><i class="i_gwc"></i>购物车</a>
    <i class="i_arr"></i>
</div>

<div class="layer_detail_full" id="detailPCArea">
    <div class="wx_bar">
        <div class="wx_bar_back" id="detailClosePC">
            <a href="###"></a>
        </div>
        <div class="wx_bar_tit">电脑版商品详情</div>
    </div>
    
    <div class="layer_detail_wrap" id="detailPC"></div>
</div>
 -->

<div class="mod_slider_mask" id="blackCover" style="display:none"></div>

<div class="image_viewer" id="imageViewer" style="display: none">
    <div class="inner">
        <img id="fullImg"/>
    </div>
</div>
<div class="qb_quick_tip qb_none" id="bubble"></div>
<script type="text/html" id="evalTpl">
<div class="comment_item">
    <p class="comment_ctn">{#peerEvalContent#}</p>
    <span class="comment_user">{#buyerName#}</span>
    <span class="comment_date">{#data#}</span>
</div>
</script>
<script>
var picUrl = '{$picUrl}';
var picUrl2 = '{$picUrl2}';
var picUrl3 = '{$picUrl3}';
var picUrl4 = '{$picUrl4}';
var picUrl5 = '{$picUrl5}';

var C_MainLogoArr = new Array();
C_MainLogoArr[0] = picUrl;
if(picUrl2 != ''){
	C_MainLogoArr[1]=picUrl2;
}
if(picUrl3 != ''){
	C_MainLogoArr[2]=picUrl3;
}
if(picUrl4 != ''){
	C_MainLogoArr[3]=picUrl4;
}
if(picUrl5 != ''){
	C_MainLogoArr[4]=picUrl5;
}


window._itemInfo = {
"errCode":"0",
"retCode":"0",
"msg":""
 ,
"user":{
	"User_NickName":"1001",
	"User_IntegratedDsrPoint":"4.8",
	"User_IntegratedDsrRate":"96"
}

 ,
"commodity":{
	"C_ServerTime":"1397013924",
	"C_Title":"佐丹奴外套男装仿皮拼接藏帽领补丁袖抓绒卫衣外套 01073922",
	"C_Uin":"855000298",
	"C_ID":"EA44F632000000000401000031FD0116",
	"C_SnapID":"EA44F632000000000401000031FD0116",
	"C_DealType":"1",
	"C_State":"2",
	"C_SoldNum":"13",
	"C_TotalSoldNum":"43",
	"C_PayedNum":"16",
	"C_TotalPayedNum":"14",
	"C_BuyCount":"43",
	"C_TotalBuyCount":"43",
	"C_VisitCount":"2988",
	"C_ResetTime":"1377599165",
	"C_BuyLimit":"0",
	"C_Num":"17",
	"C_ClassID":"243718",
	"C_Price":"139.00",
	
	
		
		"C_Promo_Price":"118.00",
	
	"C_Promo_Type":"1",
	"C_MarketPrice":"480.00",
	"C_CommodityState":"2",
	"C_Property":"302841856",
	"C_Property1":"262144",
	"C_PropertyBit":"0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001010100000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000100000000000000000000010010000011010000000000000000",
	
	
	"C_PopularCount":"0",
	"C_StartTimeString":"2014-04-07 08:15",
	"C_EndTimeString":"2014-04-21 08:11",
	"C_Fapiao":"有发票",
	"C_Baoxiu":"无保修",
	"C_MainLogo":C_MainLogoArr,
	
	"StockList_StockSkuId":"",
	"StockList_StockString":"0#颜色:01雪花冷灰|尺码:大码(175/100A)~010739220010103,118.000000,0,,140741013847448,1;0#颜色:01雪花冷灰|尺码:加大码(180/104A)~010739220010104,118.000000,1,,140740997286224,1;0#颜色:02雪花深灰|尺码:大码(175/100A)~010739220010203,118.000000,14,,140740997286225,1;0#颜色:02雪花深灰|尺码:加大码(180/104A)~010739220010204,118.000000,2,,140740997286226,1;"
	 ,
	"stocklist":[
		
		{
			"StockList_Attribute_Name":"颜色",
			"attribute_value":[
				
				{
					"StockList_Attribute_Value":"01雪花冷灰",
					"StockList_Attribute_Num":"1"
					 ,
					"attribute_imgurl":
						{
							"StockList_Attribute_Img_80":"http://img2.paipaiimg.com/00000000/item-527B740F-EA44F632000000000401000031FD0116.9.80x80.jpg ",
							"StockList_Attribute_Img_400":"http://img2.paipaiimg.com/00000000/item-527B740F-EA44F632000000000401000031FD0116.9.400x400.jpg "
						}
					
				}
				,
				{
					"StockList_Attribute_Value":"02雪花深灰",
					"StockList_Attribute_Num":"16"
					 ,
					"attribute_imgurl":
						{
							"StockList_Attribute_Img_80":"http://img2.paipaiimg.com/00000000/item-527B740F-EA44F632000000010401000031FD0116.9.80x80.jpg ",
							"StockList_Attribute_Img_400":"http://img2.paipaiimg.com/00000000/item-527B740F-EA44F632000000010401000031FD0116.9.400x400.jpg "
						}
					
				}
				
			]
		}
		,
		{
			"StockList_Attribute_Name":"尺码",
			"attribute_value":[
				
				{
					"StockList_Attribute_Value":"大码(175/100A)",
					"StockList_Attribute_Num":"14"
					
				}
				,
				{
					"StockList_Attribute_Value":"加大码(180/104A)",
					"StockList_Attribute_Num":"3"
					
				}
				
			]
		}
		
	]
	
}

 ,
"classattributes":[
	
	{
		"C_Attribute_Option_AttrID":"55",
		"C_Attribute_Option_AttrName":"品牌",
		"C_Attribute_Option_Text":""
	}
	,
	{
		"C_Attribute_Option_AttrID":"31813object",
		"C_Attribute_Option_AttrName":"货号",
		"C_Attribute_Option_Text":"其他"
	}
	,
	{
		"C_Attribute_Option_AttrID":"31053",
		"C_Attribute_Option_AttrName":"风格",
		"C_Attribute_Option_Text":"时尚休闲"
	}
	
]



 ,
"carriagetemplate":{
	"CarriageTemplate_NormailPrice":"",
	"CarriageTemplate_ExpressPrice":"",
	"CarriageTemplate_EMSPrice":""
}

 ,
"desc":{
	"C_DescFileName":"item-52F980E1-EA44F632000000000401000031FD0116.1.txt",
	"C_MobileDescFileName":"item-52F980E1-EA44F632000000000401000031FD0116.1.mobile.txt"
}

};
</script><!--[if !IE]>|xGv00|b8a2fa68ba17ba492465c7cb1f0b33d1<![endif]-->
<script type="text/javascript">
//entra109-14
(function(global){
var g=[[]],d='{$Think.config.SERVER_HOST}',m={},blankjs="",grays={},mdebug = location.href.indexOf("mdebug=1")!=-1;
m.alias = {};
var a={},p={},c=[];
//g["1"]=["\/wx_assets\/js\/product\/extend.201401121516.js","\/wx_assets\/js\/product\/formatJson.201401101547.js","\/wx_assets\/js\/product\/loadscript.201306251923.js","\/wx_assets\/js\/product\/url.201309101641.js","\/wx_assets\/js\/product\/wg.loopSrcoll.201404021610.js","\/wx_assets\/js\/product\/wg.propSelector.201403281606.js"];
g["0"]=["wx_assets\/js\/product\/mobile.zepto.201401221031.js"];
g["2"]=["wx_assets\/js\/product\/wg.itemV2.201404021603.js"];
g["1"]=["wx_assets\/js\/product\/extend.201401121516.js"];
g["3"]=["wx_assets\/js\/product\/formatJson.201401101547.js"];
g["4"]=["wx_assets\/js\/product\/loadscript.201306251923.js"];
g["5"]=["wx_assets\/js\/product\/url.201309101641.js"];
g["6"]=["wx_assets\/js\/product\/wg.loopSrcoll.201404021610.js"];
g["7"]=["wx_assets\/js\/product\/wg.propSelector.201403281606.js"];
/*
g["1"]=["wx_assets\/js\/product\/extend.201401121516.js","wx_assets\/js\/product\/formatJson.201401101547.js","wx_assets\/js\/product\/loadscript.201306251923.js","wx_assets\/js\/product\/url.201309101641.js","wx_assets\/js\/product\/wg.loopSrcoll.201404021610.js","wx_assets\/js\/product\/wg.propSelector.201403281606.js"];
g["0"]=["wx_assets\/js\/product\/mobile.zepto.201401221031.js"];
g["2"]=["wx_assets\/js\/product\/wg.itemV2.201404021603.js"];

c = [['extend',1,0],['formatJson',1,1],['loadscript',1,2],['mobile.zepto',0,0],['url',1,3],['wg.itemV2',2,0],['wg.loopSrcoll',1,4],['wg.propSelector',1,5]];
*/
c = [['extend',1,0],['formatJson',3,0],['loadscript',4,0],['mobile.zepto',0,0],['url',5,0],['wg.itemV2',2,0],['wg.loopSrcoll',6,0],['wg.propSelector',7,0]];
if(typeof(JSON)!="undefined" && window.localStorage){
	for(var key in localStorage){
		if(/^_m_/.test(key)){
			var store = JSON.parse(localStorage.getItem(key));
        	var i = key.substr(3);
        	if((new Date()).getTime()>store.cacheTime){
	    		continue;
	    	}
	    	var _m=getModuleMap(i);
	    	if(!_m || _m.group==0){continue;}
	    	var curPath=g[_m.group][_m.groupid];
	    	if((d+curPath)==store.path){
				g[0].push(curPath);
				g[_m.group][_m.groupid]=blankjs;
				c[_m.index]=[_m.id,0,g[0].length-1];
			}
		}
	}
	}
function getModuleMap(id){
	for(var i=0;i<c.length;i++){
		if(c[i][0]==id){
			return {"id":id,"index":i,"group":c[i][1],"groupid":c[i][2]};
		}
	}
	return "";
}
function getCombUrl(list){
	var a=[];
	for(var i=0;i<list.length;i++){
		if(list[i]){
			a.push(list[i]);
		}
	}
	return a.length>1?(d+""+a.join(",")):(d+a[0]);
	//return a.length>1?(d+"/c/="+a.join(",")):(d+a[0]);
}
for(var i=0;i<c.length;i++){
	var surl=d+g[c[i][1]][c[i][2]];
	var furl=getCombUrl(g[c[i][1]]);
	a[c[i][0]]=surl;
	p[c[i][0]]=(c[i][1]==0)?surl:furl;
}
m.alias=mdebug?a:p;
m.moduleURI=a;

global._moduleConfig = m;

function gray(m){
	}

})(this);
</script>
<script type="text/javascript">
typeof JSON != "object" && (JSON = {}), function() {
    function f(n) {
        return n < 10 ? "0" + n : n;
    }
    function quote(string) {
        return escapable.lastIndex = 0, escapable.test(string) ? '"' + string.replace(escapable, function(a) {
            var c = meta[a];
            return typeof c == "string" ? c : "\\u" + ("0000" + a.charCodeAt(0).toString(16)).slice(-4);
        }) + '"' : '"' + string + '"';
    }
    function str(key, holder) {
        var i, k, v, length, mind = gap, partial, value = holder[key];
        value && typeof value == "object" && typeof value.toJSON == "function" && (value = value.toJSON(key)), typeof rep == "function" && (value = rep.call(holder, key, value));
        switch (typeof value) {
          case "string":
            return quote(value);
          case "number":
            return isFinite(value) ? String(value) : "null";
          case "boolean":
          case "null":
            return String(value);
          case "object":
            if (!value) return "null";
            gap += indent, partial = [];
            if (Object.prototype.toString.apply(value) === "[object Array]") {
                length = value.length;
                for (i = 0; i < length; i += 1) partial[i] = str(i, value) || "null";
                return v = partial.length === 0 ? "[]" : gap ? "[\n" + gap + partial.join(",\n" + gap) + "\n" + mind + "]" : "[" + partial.join(",") + "]", gap = mind, v;
            }
            if (rep && typeof rep == "object") {
                length = rep.length;
                for (i = 0; i < length; i += 1) typeof rep[i] == "string" && (k = rep[i], v = str(k, value), v && partial.push(quote(k) + (gap ? ": " : ":") + v));
            } else for (k in value) Object.prototype.hasOwnProperty.call(value, k) && (v = str(k, value), v && partial.push(quote(k) + (gap ? ": " : ":") + v));
            return v = partial.length === 0 ? "{}" : gap ? "{\n" + gap + partial.join(",\n" + gap) + "\n" + mind + "}" : "{" + partial.join(",") + "}", gap = mind, v;
        }
    }
    typeof Date.prototype.toJSON != "function" && (Date.prototype.toJSON = function(key) {
        return isFinite(this.valueOf()) ? this.getUTCFullYear() + "-" + f(this.getUTCMonth() + 1) + "-" + f(this.getUTCDate()) + "T" + f(this.getUTCHours()) + ":" + f(this.getUTCMinutes()) + ":" + f(this.getUTCSeconds()) + "Z" : null;
    }, String.prototype.toJSON = Number.prototype.toJSON = Boolean.prototype.toJSON = function(key) {
        return this.valueOf();
    });
    var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, gap, indent, meta = {
        "\b": "\\b",
        "	": "\\t",
        "\n": "\\n",
        "\f": "\\f",
        "\r": "\\r",
        '"': '\\"',
        "\\": "\\\\"
    }, rep;
    typeof JSON.stringify != "function" && (JSON.stringify = function(value, replacer, space) {
        var i;
        gap = "", indent = "";
        if (typeof space == "number") for (i = 0; i < space; i += 1) indent += " "; else typeof space == "string" && (indent = space);
        rep = replacer;
        if (!replacer || typeof replacer == "function" || typeof replacer == "object" && typeof replacer.length == "number") return str("", {
            "": value
        });
        throw new Error("JSON.stringify");
    }), typeof JSON.parse != "function" && (JSON.parse = function(text, reviver) {
        function walk(holder, key) {
            var k, v, value = holder[key];
            if (value && typeof value == "object") for (k in value) Object.prototype.hasOwnProperty.call(value, k) && (v = walk(value, k), v !== undefined ? value[k] = v : delete value[k]);
            return reviver.call(holder, key, value);
        }
        var j;
        text = String(text), cx.lastIndex = 0, cx.test(text) && (text = text.replace(cx, function(a) {
            return "\\u" + ("0000" + a.charCodeAt(0).toString(16)).slice(-4);
        }));
        if (/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, "@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, "]").replace(/(?:^|:|,)(?:\s*\[)+/g, ""))) return j = eval("(" + text + ")"), typeof reviver == "function" ? walk({
            "": j
        }, "") : j;
        throw new SyntaxError("JSON.parse");
    });
}();

var modulejs, require, define;

(function(global) {
    function _loadCache() {
        if (!_useCache()) return !1;
        localStorage.removeItem("_modules");
        for (var key in localStorage) if (/^_m_/.test(key)) {
            var store = JSON.parse(localStorage.getItem(key)), i = key.substr(3), now = (new Date).getTime(), oneDay = 864e5;
            if (cfg.alias[i]) {
                if (_getModuleURI(i) != store.path || store.deps.join(",").indexOf("{") > -1) {
                    emit("module_cacheDel", i), localStorage.removeItem(key);
                    continue;
                }
            } else if (now > store.cacheTime) {
                emit("module_cacheDel", i), localStorage.removeItem(key);
                continue;
            }
            if (store.cacheTime - now < oneDay) {
                store.cacheTime = (new Date).getTime() + cacheTime;
                try {
                    localStorage.removeItem(key), localStorage.setItem(key, JSON.stringify(store));
                } catch (e) {}
            }
            cfg.cacheLoad[store.id] = store, emit("cache_load", store);
        }
    }
    function _getModuleURI(id) {
        return cfg.moduleURI[id] ? cfg.moduleURI[id] : cfg.alias[id];
    }
    function _useCache(id, deps, factory) {
        if (typeof JSON == "undefined") return !1;
        if (!isCache) return !1;
        if (!JSON || !window.localStorage) return !1;
        if (cfg.debug) return !1;
        var agent = navigator.userAgent.toLowerCase();
        if (agent.indexOf("msie") > 0) {
            var m = agent.match(/msie\s([\d\.]+);/i);
            if (m && m.length >= 2 && parseInt(m[1]) <= 6) return !1;
        }
        return id && id.indexOf("_") == 0 ? !1 : factory && factory.toString().indexOf("_cacheThisModule_") < 0 ? !1 : !0;
    }
    function _cacheModule(id, deps, factory) {
        var key = "_m_" + id, _t = localStorage.getItem(key), ms = _t ? JSON.parse(_t) : {};
        ms = {
            "id": id,
            "deps": deps,
            "factory": factory.toString(),
            "path": _getModuleURI(id),
            "cacheTime": (new Date).getTime() + cacheTime
        };
        try {
            localStorage.removeItem(key), localStorage.setItem(key, JSON.stringify(ms)), emit("module_cached", id);
        } catch (e) {}
    }
    function _define(id, deps, factory) {
        arguments.length === 2 && (factory = deps, deps = null), deps = isType("Array", deps) ? deps : deps ? [ deps ] : [];
        if (isType("Function", factory)) var _deps = parseDependencies(factory.toString());
        _useCache(id, deps, factory) && _cacheModule(id, deps, factory), deps = mergeArray(deps, _deps);
        var mod = new Module(id);
        mod.dependencies = deps || [], mod.factory = factory, id == "_init" ? cfg.callback.push(mod) : cfg.modules[id] = mod, emit("module_ready", id);
    }
    function _require(id) {
        id = parseVars(id);
        var module = cfg.modules[id];
        emit("module_require", id);
        if (!module) return emit("module_error", id), null;
        if (module.exports) return module.exports;
        var now = new Date, factory = module.factory, exports = isType("Function", factory) ? factory(require, module.exports = {}, module) : factory;
        return module.exports = exports === undefined ? module.exports : exports, cfg.timing[id] = new Date - now, module.exports;
    }
    function _modulejs(deps, factory) {
        _define("_init", deps, factory);
    }
    function checkDeps(deps) {
        function getDesps(deps, list) {
            for (var i = 0; i < deps.length; i++) list[deps[i]] || (list[deps[i]] = 1), cfg.modules[deps[i]] && list[deps[i]] != 2 && (list[deps[i]] = 2, getDesps(cfg.modules[deps[i]].dependencies, list));
        }
        var list = {}, flag = !0;
        for (var i = 0; i < deps.length; i++) list[deps[i]] = 1;
        getDesps(deps, list);
        for (var i in list) {
        	cfg.modules[i] || (loadModule(i), flag = !1);
        }
        return flag;
    }
    function parseVars(id) {
        var VARS_RE = /{([^{]+)}/g, vars = cfg.vars;
        return vars && id.indexOf("{") > -1 && (id = id.replace(VARS_RE, function(m, key) {
            return isType("String", vars[key]) ? vars[key] : key;
        })), id;
    }
    function mergeObject(a, b) {
        for (var i in b) {
            if (!b.hasOwnProperty(i)) continue;
            a[i] ? Object.prototype.toString.call(b[i]) == "[object Object]" ? mergeObject(a[i], b[i]) : a[i] = b[i] : a[i] = b[i];
        }
        return a;
    }
    function config(obj) {
        return cfg = mergeObject(cfg, obj);
    }
    function Module(id) {
        this.id = id, this.dependencies = [], this.exports = null, this.uri = "";
    }
    function loadModule(id) {
        var m;
        if (m = cfg.cacheLoad[id]) return _define(m.id, m.deps, eval("a = " + m.factory));
        if (cfg.modules[id]) {
            emit("module_ready", id);
            return;
        }
        var url = cfg.alias[id] ? cfg.alias[id] : "";
        if (!url) {
            emit("module_loss_alias", id);
            return;
        }
        if (cfg.uris[url]) return;
        cfg.uris[url] = 1;
        var head = document.getElementsByTagName("head")[0] || document.documentElement, baseElement = head.getElementsByTagName("base")[0], node = document.createElement("script");
        node.charset = "utf-8", node.async = !0, node.src = url;
        var handler = function() {
            var callee = arguments.callee;
            cfg.timing[callee.uri] = new Date - callee.time;
        };

        handler.time = new Date, handler.uri = url, node.onload = handler, baseElement ? head.insertBefore(node, baseElement) : head.appendChild(node), cfg.debug && emit("file_loading", url);
    }
    function on(name, cb) {
        var cbs = cfg.events[name];
        cbs || (cbs = cfg.events[name] = []), cbs.push(cb);
    }
    function emit(name, evt) {
        debug(name, evt);
        if (!cfg.events[name] || cfg.events[name].length == 0) return;
        for (var i = 0, l = cfg.events[name].length; i < l; i++) cfg.events[name][i](evt);
        name === "error" && delete cfg.events[name];
    }
    function cleanArray(a) {
        var n = [];
        for (var i = 0; i < a.length; i++) a[i] && n.push(a[i]);
        return n;
    }
    function mergeArray(a, b) {
        for (var i = 0; i < b.length; i++) ("," + a + ",").indexOf("," + b[i] + ",") < 0 && a.push(b[i]);
        return a;
    }
    function isType(type, obj) {
        return Object.prototype.toString.call(obj) === "[object " + type + "]";
    }
    function parseDependencies(code) {
        var commentRegExp = /(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg, cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g, ret = [];
        return code.replace(commentRegExp, "").replace(cjsRequireRegExp, function(match, dep) {
            dep && ret.push(parseVars(dep));
        }), ret;
    }
    function debug() {
        if (!cfg.debug) return !0;
        var a = [], l = arguments.length;
        for (var i = 0; i < l; i++) a.push(arguments[i]);
        try {
            console.log.apply(console, a);
        } catch (e) {}
    }
    var mod, cfg, _modulejs, _define, _require, version = "1.0.2", isCache = !0, cacheTime = 2592e6;
    cfg = {
        "debug": location.href.indexOf("mdebug=1") != -1 ? !0 : !1,
        "alias": {},
        "cssAlias": {},
        "moduleURI": {},
        "vars": {},
        "uris": {},
        "modules": {},
        "callback": [],
        "actModules": {},
        "cacheLoad": {},
        "cacheDel": {},
        "deps": {},
        "events": {},
        "timing": {}
    }, _modulejs.config = config, config(global._moduleConfig ? global._moduleConfig : cfg), global._moduleConfig = cfg, require = _require, define = _define, modulejs = _modulejs, on("module_ready", function(id, fromeCache) {
        cfg.callback = cleanArray(cfg.callback);
        var init = cfg.callback, l = init.length;
        for (var i = 0; i < l; i++) if (init[i] && checkDeps(init[i].dependencies)) {
            var cb = init[i].factory, deps = init[i].dependencies, mods = [], allDeps = [], m;
            for (var j = 0; j < deps.length; j++) {
                var m = _require(deps[j]);
                allDeps.push(m.dependencies), mods.push(m);
            }
            debug("callback_is_run=start", cb.toString(), cfg.callback), init[i] = null, cb.apply(null, mods), cfg.debug && emit("callback_is_run", cb.toString().replace(/[\r\n]/g, ""));
        }
    }), on("module_require", function(id) {
        cfg.actModules[id] = cfg.actModules[id] ? cfg.actModules[id] + 1 : 1;
    }), on("module_cacheDel", function(id) {
        cfg.cacheDel[id] = 1;
    }), on("cache_load", function(m) {}), on("module_loss_alias", function(id) {
        console.error("module_loss_alias:" + id);
    });
    var cacheNow = new Date;
    _loadCache(), cfg.timing.loadcache = new Date - cacheNow, _require.async = _modulejs, _require.css = function(path) {
        path = cfg.cssAlias && cfg.cssAlias[path] ? cfg.cssAlias[path] : path;
        if (!path) return;
        var l;
        if (!window._loadCss || window._loadCss.indexOf(path) < 0) l = document.createElement("link"), l.setAttribute("type", "text/css"), l.setAttribute("rel", "stylesheet"), l.setAttribute("href", path), l.setAttribute("id", "loadCss" + Math.random()), document.getElementsByTagName("head")[0].appendChild(l), window._loadCss ? window._loadCss += "|" + path : window._loadCss = "|" + path;
        return l && typeof callback == "function" && (l.onload = callback), !0;
    };
})(this);

</script>
<script type="text/javascript">
var _speedMarkModule = new Date();
modulejs("wg.itemV2",function(itemEnter){
    itemEnter.init();
});</script><!--[if !IE]>|xGv00|456f6103fe02758a3c366d1fc82755ca<![endif]-->

<script>
//var objMsg =  {p:"m.wanggou.com",client:4001};
window.manualReport = true; //单独上报
window.shareConfig = {
    img_url: '',
    img_width: "100",
    img_height: "100",
    link: location.href,
    title: '',
    desc: "微信正品"
};
(function(){
	var ua = navigator.userAgent.toLowerCase();
	if((/qq\/([\d\.]+)*/).test(ua)){
		document.getElementById('brandTitle').parentNode.style.display = 'none';
	}
})();

</script>

<!-- include virtual="/sinclude/mm/foot_inc.shtml"-->
<script>
document.addEventListener('WeixinJSBridgeReady', function onBridgeReady(){
	WeixinJSBridge.call('showOptionMenu'); //杩欎釜鏄墦寮€鍙充笂瑙掔殑鑿滃崟閿€�
	//hideToolbar
	//WeixinJSBridge.call('hideToolbar');
	//鏈嬪弸鍦�
	WeixinJSBridge.on("menu:share:timeline", function() {
		WeixinJSBridge.invoke("shareTimeline", shareConfig, function(e){});
	});
	
	//鍙戠粰濂藉弸
	WeixinJSBridge.on("menu:share:appmessage", function() {
		WeixinJSBridge.invoke("sendAppMessage", shareConfig, function(e){});
	});
	
	//寰崥
	shareConfig.url = shareConfig.link;
	shareConfig.content = shareConfig.title + "  " + shareConfig.desc;
	WeixinJSBridge.on("menu:share:weibo", function(argv) {
		WeixinJSBridge.invoke("shareWeibo", shareConfig, function(e){});
	});
});
</script>

<script>window["PP.wg.mobilereport.time"]=[new Date()]</script>
<script id="legos:21948" ver="21948:20140325:20140327112020" name="PP.wg.mobilereport" src="http://static.paipaiimg.com/js/version/2014/03/pp.wg.mobilereport.20140325.js?t=20140327112020" charset="gbk"></script><!--[if !IE]>|xGv00|256b260e5a9a354c14174b33ca069640<![endif]-->
<script>
(function(){
	var flag = typeof(objMsg) == 'object', objMsgPv = flag ? objMsg : {p:"paipai.com",weixin:1}; //閫氶亾p 涓簆aipai.com
	
	var ua = navigator.userAgent.toLowerCase(), isHideBack=false;
	if((/qq\/([\d\.]+)*/).test(ua)){
		if(!flag) objMsgPv.client = 2001;
		isHideBack = true;
	}
	else if(ua.indexOf('micromessenger') > -1){
		if(!flag) objMsgPv.client = 1001;
	}
	else{
		if(!flag) objMsgPv.client = 4001;
	}
	
	// 鍏佽涓氬姟鎵嬪伐涓婃姤
	if(!window.MANUAL_SPEED){
		ECC.cloud.report.pv(objMsgPv); //杩欎釜涓€瀹氳鍦ㄥ墠  闃叉鍚庨潰鎶ラ敊
	}
	
	if(isHideBack){
		var back = document.querySelectorAll('.wx_bar,.WX_bar');
		if(back[0] && back[0].className.toLowerCase() == 'wx_bar') back[0].style.display = 'none';
	}
})();
//娴嬮€熶笂鎶�
document.addEventListener('DOMContentLoaded', function(){
	var rate=1;
	//rate=(location.href.indexOf("www.paipai.com")>=0)?0.3:rate;
	if(!window.speedTimePoint)return;
	if(speedTimePoint.length<2)return;
	var s=[],sp=speedTimePoint;
	for(var i=1;i<sp.length;i++){
		if(!!sp[i])	s.push(i+"="+(sp[i]-sp[0][0]));
	}
	var url="http://isdspeed.qq.com/cgi-bin/r.cgi?flag1="+sp[0][1]+"&flag2="+sp[0][2]+"&flag3="+sp[0][3]+"&"+s.join("&");//涓婃姤cgi鐨勫湴鍧€
	if(Math.random()<rate){
		var em = document.createElement('script');
		em.src = url;
		document.getElementsByTagName('head')[0].appendChild(em);
	}
});
</script>


<script type="text/javascript" src="wx_assets/js/product/zepto.1.1.2.min.js?t=20140106"></script>
<script>window["PP.mobile.ping.time"]=[new Date()]</script>
<!-- 
<script id="legos:21913" ver="21913:20131231:20131231163222" name="PP.wx.cmdty" src="wx_assets/js/product/attribute.js?t=201401211039" charset="gbk"></script>
 -->
<script id="legos:21913" ver="21913:20131231:20131231163222" name="PP.wx.cmdty" src="wx_assets/js/product/attribute.js?t=201401211039" charset="gbk"></script>
<script id="legos:21922" ver="21922:20140404:20140404135449" name="PP.mobile.ping" src="wx_assets/js/product/pp.mobile.ping.20140404.js?t=20140404135449" charset="gbk"></script><!--[if !IE]>|xGv00|495be5a3d569c9c417efc560908cc5de<![endif]--><!--[if !IE]>|xGv00|320f6511762bf891111404a0c574a5e7<![endif]--><!--[if !IE]>|xGv00|7b4683f818414321aa44395ebd48efa7<![endif]-->

   
<script type="text/javascript">
var inventory = {$inventory};
var totalInventoryCount = {$inventoryCount};

var sku = [];
var skuKey = [];
var size = {$size};
if (size != null) {
	var sizeUnit = "{$sizeUnit}";
	sku.push({"list": size, "pName":sizeUnit});
	skuKey.push(sizeUnit);
}
var color = {$color};
if (color != null) {
	var colorUnit = "{$colorUnit}";
	sku.push({"list": color, "pName":colorUnit});
	skuKey.push(colorUnit);
}

if (skuKey.length > 0) {
	$('#skuTitle').html(skuKey.join('/'));
}

if (inventory == 1 && totalInventoryCount <= 0 && sku.length == 0) {
	$("#buyBtn").addClass("btn_dis").attr("disabled", !0).html("已售完") ;
}
var availSku = {$availSku};
var orderType = '{$fixedPrice}' === '' ? 'point' : 'buy';

var PAGEMESS = {
	skuList: sku,
	stockAttrMap: availSku,
	inventory:inventory,
	orderType:orderType
	
	/*skuList: [{pName:"颜色",list:["白色","土黄色","101藏青色"]},{pName:"尺码",list:["29","30","31","32","33","34","35","36","37","38"]}],
      stockAttrMap: {"颜色:白色|尺码:29":{"activityPrice":23900,"activityType":43,"beginTime":0,"colorPrice":[],"createTime":1395303228000,"endTime":0,"index":0,"lastModifyTime":1395303228000,"sellerUin":855007014,"shopVipPrice":[23422,23183,22944,22705],"soldCount":0,"stockAttr":"颜色:白色|尺码:29","stockCount":0,"stockDesc":"","stockId":"158466873","stockLocalCode":"501129630","stockPrice":27900}  },
              totalStock: 107, 
      imgList: ["http://img6.paipaiimg.com/56611a9a/item-5319A1CF-265FF632000000000401000036F6CA90.0.160x160.jpg","http://img6.paipaiimg.com/6accbb21/item-5319A1CF-265FF632000000000401000036F6CA90.1.160x160.jpg","http://img6.paipaiimg.com/1ea4910e/item-5319A1CF-265FF632000000000401000036F6CA90.2.160x160.jpg","http://img6.paipaiimg.com/9f08d464/item-5319A1CF-265FF632000000000401000036F6CA90.3.160x160.jpg","http://img6.paipaiimg.com/62372c6c/item-5319A1CF-265FF632000000000401000036F6CA90.4.160x160.jpg"],
      cmdtyTitle: "休闲裤",
      cmdtyCode: "265FF632000000000401000036F6CA90",
      isTejia: "false",
      dealType: "1",
      itemState: "2",
      leaf: "243721",
      shop:"855007014",
      propPicMap: {"颜色\:白色":"http://img6.paipaiimg.com/56611a9a/item-5319A1CF-265FF632000000010401000036F6CA90.9.80x80.jpg","颜色\:土黄色":"http://img6.paipaiimg.com/56611a9a/item-5319A1CF-265FF632000000020401000036F6CA90.9.80x80.jpg","颜色\:101藏青色":"http://img6.paipaiimg.com/56611a9a/item-5319A1CF-265FF632000000000401000036F6CA90.9.80x80.jpg"}
*/
  };
  </script>
<script type="text/html" id="propertyTpl">
        <div class="sku">
			<h3>{#pName#}</h3>
            <div class="sku_list" data-propname="{#pName#}">
            	{#itemList#}
            </div>
        </div>
    </script>
<script type="text/html" id="propertyItemTpl">
    	<span class="option" attr-tag="propItem" data-itemName="{#pName#}:{#item#}" data-prop="{#item#}">{#text#}</span>
    </script>
<script>
var hrefParamsArray = GetSessionIdFromHref(window.location.search);
hrefParamsArray["userName"]='{$userName}';
function showBubble(a,b){
    if (a) {
        b = b || 1500;
        var c = $("#bubble");
        c.css("opacity", 1), c.hasClass("qb_none") || c.html(a), c.html(a).removeClass("qb_none"), setTimeout(function () {
            c.animate({
                opacity: 0
            }, 500, "ease", function () {
                $(this).addClass("qb_none").removeAttr("style")
            })
        }, b)
    }
}
function GetSessionIdFromHref(search){
　　	var args = search.substring(1); 
　　	var retval = new Array(); 
	args = args.split("&"); 
		for(var i = 0; i < args.length; i ++){ 
			str = args[i]; 
			var arg = str.split("="); 
			if(arg.length <= 1) continue; 
			
			if(arg[0] == 'params') {
				var params = decodeURIComponent(arg[1]);
				var obj = eval('(' + params + ')');
				if (obj.rootid != undefined) {
					retval["rootid"] = obj.rootid;
				}
				if (obj.start != undefined) {
					retval["start"] = obj.start;
				}
				if (obj.tplid != undefined) {
					retval["tplid"] = obj.tplid;
				}
				retval["id"] = obj.id;
			} else if(arg[0] == 'customerId') {
				retval["customerId"] = arg[1]; 
			}else if(arg[0] == 'userName'){
				retval["userName"] = arg[1]; 
			} else if(arg[0] == 'method') {
				retval["method"] = arg[1];
			}
		} 
		if (retval["start"] == undefined) {
			retval["start"] = 0;
		}
		return retval; 
}
</script>
<script type="text/javascript">
function buy(btn) {
	if ($(btn).attr("disabled") == 'true') return;
	var data = PP.wx.cmdty.propObj.getSelectedProp(), prop;
  	for (var key in data) {if (!data[key]) return alert("请选择商品的" + key);}

  	var baseUrl =  '{$Think.config.SERVER_HOST}';
 	var urlString = baseUrl + 'call.json?customerId='+ hrefParamsArray["customerId"]+'&userName='+hrefParamsArray["userName"];
 
    if (orderType === 'point') {
    	var isMember = parseInt('{$isMember}');
    	var isCheck = parseInt('{$isCheck}');
    	var points = parseInt('{$points}');
    	var myScore = parseInt('{$myScore}');
    }
    if (orderType === 'point') {
    	if (isMember == 0 || isMember == "") {
    		alert("兑换商品需要成为会员，请先注册为会员");
    		return;
    	}else if(isMember == 1 && isCheck == 0){
    		alert("您的会员资料未审核通过，无法兑换商品，请先完善资料！");
    		return ;
    	}else if(isMember == 1 && isCheck == 2){
    		alert("您的会员资料正在审核中，暂时无法兑换商品");
    		return ;
    	}
    	
    	if (myScore < points) {
    		alert("您的积分为" + myScore + "积分，尚不够兑换该商品");
    		return;
    	}
    }
    var rootid = '';
 	if (hrefParamsArray["rootid"] !== undefined) {
 		rootid = ',"rootid":' + hrefParamsArray["rootid"];
 	}
    
    var pid = hrefParamsArray['id'];
    var sizes = '';
 	var colors = '';
 	prop = $(btn).attr("data-prop");
 	if (prop != null) {
 		var propItems = prop.split("|");
 	    sizes = encodeURIComponent(propItems[0]);
 	    if (propItems.length == 2) {
 	    	colors = encodeURIComponent(propItems[1]);
 	    }
 	}
    var buyNum = 1;
     $.ajax({url : urlString,
 		dataType : "json",
 		type : "post",
 		timeout: 15000,
 		data : {
 			'module': 'product',
 	        'method' : 'preSubmitOrder',
 	        'params' : '{"pids":' + pid + ',"counts":' + buyNum + ',"type":"' + orderType + 
 	        	'","sid":-1,"sizes":"' + sizes + '","colors":"' + colors + '"}'
 	    	},
 		success : function(data) {
 			if (data.code) {
 				alert(data.msg);
 				return;
 			}
 			window.location.href = 'call.html?userName=' + hrefParamsArray['userName'] + '&customerId='
 			+ hrefParamsArray['customerId'] + '&module=product&method=getOrderDetail&params={"tplid":'+hrefParamsArray['tplid']+',"id":"' + data.id + '"' + rootid + '}';
 			//window.location.href = 'call.html?userName=' + hrefParamsArray['userName'] + '&customerId='
 			//+ hrefParamsArray['customerId'] + '&module=product&method=getOrderDetail&params={"tplid":2,"id":' + data.id + rootid + '}';
 		},
 		 error: function(jqXHR, textStatus, errorThrown){
 			 alert('发送超时,可能存在网络异常,检查后请重试...');
 				//$("#showcard").val("保 存");
 				//$("#showcard").attr("disabled", false);
 	     }
 });
 }
 </script>
 
 
             
<script type="text/javascript">
function resetAndAppendHerf(search){
　　	var args = search.substring(1); 
　　	var retval = new Array(); 
	args = args.split("&"); 
	for(var i = 0; i < args.length; i ++){ 
		str = args[i]; 
		var arg = str.split("="); 
		if(arg.length <= 1) continue; 
		if(arg[0] == 'userName'){
			args[i] = "userName=";
		}
	} 
	return args.join("&");
}

$(function(){
	var imageUrl = "{$mall.mallShareLogo}";
	var title = '{$mall.mallShareTitle}';
	var des = '{$mall.mallShareDesc}';
	var search = '?' + resetAndAppendHerf(window.location.search);
	var shareUrlString = '{$mall.mallShareUrl}';
	
	window.shareData = {
		"imgUrl": imageUrl,
		"timeLineLink":  shareUrlString ,
		"sendFriendLink":  shareUrlString ,
		"weiboLink":  shareUrlString ,
		"tTitle": title,
		"tContent": des,
		"fTitle": title,
		"fContent": des,
		"wContent": des
	};
	document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
		// 发送给好友
		WeixinJSBridge.on('menu:share:appmessage', function (argv) {
			WeixinJSBridge.invoke('sendAppMessage', {
				"img_url":  window.shareData.imgUrl,
				"img_width": "640",
				"img_height": "640",
				"link": window.shareData.sendFriendLink,
				"desc": window.shareData.fContent,
				"title": window.shareData.fTitle
			}, function (res) {
				_report('send_msg', res.err_msg);
			})
		});
	
		// 分享到朋友圈
		WeixinJSBridge.on('menu:share:timeline', function (argv) {
			WeixinJSBridge.invoke('shareTimeline', {
				"img_url": window.shareData.imgUrl,
				"img_width": "640",
				"img_height": "640",
				"link": window.shareData.timeLineLink,
				"desc": window.shareData.tContent,
				"title": window.shareData.tTitle
			}, function (res) {
				_report('timeline', res.err_msg);
			});
		});
	
		// 分享到微博
		WeixinJSBridge.on('menu:share:weibo', function (argv) {
			WeixinJSBridge.invoke('shareWeibo', {
				"content": window.shareData.wContent,
				"url": window.shareData.weiboLink
			}, function (res) {
				_report('weibo', res.err_msg);
			});
		});
	});
});
</script>

</body>
</html>
<!--[if !IE]>|xGv00|eef02925d15e19576a29b9e774f32cda<![endif]-->